package coroutines.cancel

import kotlinx.coroutines.*

class YieldTest {
}

fun main() {
    runBlocking {
        val job = launch(Dispatchers.Default) {
            while (true) {
                println("yield test")
                yield()
            }
        }

        delay(100)

        job.cancel()
    }
}